import {observable,action} from 'mobx-miniprogram';
export const store=observable({
  plandetail:{},
  intruduction:{},
  project:{},
  shop:{},
  message:[],
  get getshop(){
    return this.shop
  },
  updateshop:action(function(shop){
    this.shop=shop
    console.log(shop)
  }),
  get getproject(){
    return this.project
  },
  get getplandetail(){
    return this.plandetail
  },
  get getintruduction(){
    return this.intruduction
  },
  updateproject:action(function (project){
    this.project=project
    console.log(this.project)
  }),
  updateintrudction:action(function (intruduction){
    this.intruduction=intruduction
    console.log(this.intruduction)
  }),
  updateplandetail:action(function (plandetail,start,end) {
    this.plandetail=plandetail
   this.plandetail.starttime=start
   this.plandetail.endtime=end
  })
})